package com.gao;

import dao.impl.UserDao;

import java.util.List;

public class userServiceIml implements UserService {
    private List<UserDao> userDaoList;
    public void setUserDaoList(List<UserDao> userDaoList) {
        this.userDaoList = userDaoList;
    }

    private UserDao userDao;
    //BeanFactory去调用该方法 从容其中获得userDao设置到此处
    public void setUserDao(UserDao userDao){
        this.userDao=userDao;
        System.out.println("BeanFactory去调用该方法获得userDao设置到此处"+userDao);
    }


    @Override
    public void show() {
        System.out.println(this.userDao);
    }
}
